import request from '@/utils/request'


export function list(query) {
  return request({
    url: '/main/makerActivity/list',
    method: 'get',
    params: query
  })
}

export function addActivity(data) {
  return request({
    url: '/main/makerActivity/add',
    method: 'post',
    data: data
  });
}

// 修改用户
export function updateActivity(data) {
  return request({
    url: '/main/makerActivity/edit',
    method: 'put',
    data: data
  })
}

// 改变创客状态
export function changeStatus(data) {
  return request({
    url: '/main/makerActivity/edit',
    method: 'put',
    data: data
  })
}
